3 Andrés Mejía-Posada (andmej@gmail.com)
27 #define foreach(x, v) for (typeof (v).begin() x = (v).begin(); x != (v).end(); ++x)
28 #define For(i, a, b) for (int i=(a); i<(b); ++i)
29 #define D(x) cout << #x " is " << x << endl
40 for (int i
=0; i
<s
.size(); ++i
){
42 if (isalpha(s
[i
])) f
[s
[i
]]++;
46 for (map
<char, int>::iterator i
= f
.begin(); i
!= f
.end(); ++i
){
49 ans
= string(1, i
->first
);
51 else if (i
->second
== best
){
55 sort(ans
.begin(), ans
.end());